//
//  MyAdvViewController.m
//  WWXELuShang
//
//  Created by lanou on 15/12/25.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "MyAdvViewController.h"
#import "MyAdv.h"

@interface MyAdvViewController ()

@end

@implementation MyAdvViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = kBackGroundColor;
    
    self.navigationController.navigationBar.barTintColor = kBarColor;
    
    
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"关闭" style:(UIBarButtonItemStyleDone) target:self action:@selector(backToF)];
    self.navigationItem.leftBarButtonItem.tintColor = [UIColor whiteColor];
//    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"" style:(UIBarButtonItemStyleDone) target:self action:nil];
    
    
    MyAdv *myadv = [[MyAdv alloc]initWithFrame:[UIScreen mainScreen].bounds];
    
    
    
    
    [self.view addSubview:myadv];
    
    
    // Do any additional setup after loading the view.
}

- (void)backToF{
    [self.navigationController popToRootViewControllerAnimated:YES];
    
    //    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
